import request from '@/utils/request'

// 查询新车辆到站列表
export function listVehicleArrive(query) {
  return request({
    url: '/shipment/vehicleArrive/list',
    method: 'get',
    params: query
  })
}
export function dzShipmentInfo(query) {
  return request({
    url: '/shipment/shipment/getDZShipmentInfo',
    method: 'get',
    params: query
  })
}

export function rvShipmentList(query) {
  return request({
    url: '/shipment/shipment/getRVShipmentList',
    method: 'get',
    params: query
  })
}

// 查询新车辆到站详细
export function getVehicleArrive(id) {
  return request({
    url: '/shipment/vehicleArrive/' + id,
    method: 'get'
  })
}

// 新增新车辆到站
export function addVehicleArrive(data) {
  return request({
    url: '/shipment/vehicleArrive',
    method: 'post',
    data: data
  })
}

// 修改新车辆到站
export function updateVehicleArrive(data) {
  return request({
    url: '/shipment/vehicleArrive',
    method: 'put',
    data: data
  })
}

// 删除新车辆到站
export function delVehicleArrive(id) {
  return request({
    url: '/shipment/vehicleArrive/' + id,
    method: 'delete'
  })
}

// saveVehicleArrive

export function saveVehicleArrive(ids) {
  return request({
    url: '/shipment/vehicleArrive/saveVehicleArrive/' + ids,
    method: 'post',
  })
}
